package com.coocaa.cirrus.common.base.util;

import lombok.experimental.UtilityClass;
import org.apache.commons.lang3.StringUtils;

/**
 * @author bijiahao
 * @date : 2025/9/18 13:47
 * @description
 */
@UtilityClass
public class StringUtil {
    public static String avoidNull(String str) {
        return str != null && !"null".equals(str) ? str : "";
    }

    public static String replaceBlank(String originStr, String blankReplaceStr) {
        return StringUtils.isBlank(originStr) ? blankReplaceStr : originStr;
    }
}
